package lamma.lab2.job;

/**
 * running result for job / context
 * 
 * @author maxcellent
 *
 */
public class Result<T> {
	
	public enum Status {
		SUCCESS, 
		FAILED,
	}
	
	private T jobObj;

	private Status status;
	
	private Throwable throwable;

	Result(T jobObj, Status status, Throwable throwable) {
		super();
		this.jobObj = jobObj;
		this.status = status;
		this.throwable = throwable;
	}

	public T getJobObj() {
		return jobObj;
	}

	public Status getStatus() {
		return status;
	}

	public Throwable getThrowable() {
		return throwable;
	}
}
